#ifndef CMYWINDOW_H
#define CMYWINDOW_H

#include <QString>
#include <QWidget>

class QMenuBar;
class CMyWindow : public QWidget {
  protected:
    void LoadSizeFromFile(QWidget* pThis, const QString& filename);
    void SaveSizeToFile(QWidget* pThis, const QString& filename, const QString moduleName);

  public:
    CMyWindow(QWidget* parent = nullptr);
    ~CMyWindow();

    virtual void LoadSize(QWidget* parent) = 0;
    virtual void SaveSize(QWidget* parent) = 0;
    virtual QMenuBar* GetMenuBar() = 0;
    virtual int GetComponentId() = 0;  // MyShortcut：0
};

#endif  // CMYWINDOW_H
